﻿using System;
using System.Collections.Generic;
using System.Text;

namespace SSAT.Utils
{
    /* If you wish to use Action delegate with ONE argument
     * you HAVE TO utilize standart .NET 2.0 delegate System.Action<T>.
     * For Action delegate with more than one argument define them in 
     * this file with the name Action, because .NET 2.0 provides only
     * Action<T>.
     */

    /// <summary>
    /// Common delegate for methods with void 
    /// return value and no params.
    /// </summary>
    public delegate void Action();

    /// <summary>
    /// Common delegate for methods with void 
    /// return value and two arguments.
    /// </summary>
    /// <typeparam name="T1">Type of the first argument.</typeparam>
    /// <typeparam name="T2">Type of the second argument.</typeparam>
    public delegate void Action<T1, T2>(T1 arg1, T2 arg2);
}
